package com.open.capacity.study.dao;

import com.open.capacity.common.model.SysTeaching;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface TeachingSystemDao {
    /**
     * 根据体系名查询
     * @param ttitle
     * @return
     */
    SysTeaching findByTitle(String ttitle);

    /**
     * 新增
     * @param sysTeaching
     * @return
     */
    int insert(SysTeaching sysTeaching);

    /**
     * 根据体系id查询
     * @param id
     * @return
     */
    SysTeaching findById(Integer id);

    /**
     * 根据id修改体系可用状态
     * @param updateTeaching
     * @return
     */
    int updateStatusById(SysTeaching updateTeaching);

    /**
     * 修改教学体系信息
     * @param sysTeaching
     * @return
     */
    int updateById(SysTeaching sysTeaching);

    /**
     * 计数
     * @param params
     * @return
     */
    int count(Map<String, Object> params);

    /**
     * 查询
     * @param params
     * @return
     */
    List<SysTeaching> findList(Map<String, Object> params);
}
